import {
  Button,
  Search,
  Tab,
  Tabs,
  Tabbar,
  TabbarItem,
  PullRefresh,
  Uploader,
  Popover,
  Icon,
  Field,
  Popup,
  Toast,
  RadioGroup,
  Radio,
  Picker,
  DatetimePicker,
  Lazyload,
} from "vant";

let plugins = [
  Button,
  Search,
  Tab,
  Tabs,
  Tabbar,
  TabbarItem,
  PullRefresh,
  Uploader,
  Popover,
  Icon,
  Field,
  Popup,
  Toast,
  RadioGroup,
  Radio,
  Picker,
  DatetimePicker,
  Lazyload,
];

export default function getVant(app) {
  plugins.forEach((item) => {
    return app.use(item);
  });
}
